package pl.ericpol.stubs;

import java.util.Random;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import pl.ericpol.environment.sensors.move_sensors.MoveSensor;

public class MoveSensorAdapterStub extends MoveSensor{
	
	private Random random = new Random();
	private static Logger logger = LogManager.getLogger(MoveSensorAdapterStub.class);
	
	
	public MoveSensorAdapterStub(int id) {
		super(id);
	}

	@Override
	public boolean getConcreteState() {
		boolean result = random.nextBoolean();
		logger.info("Move sensor with id: "+getId()+ " return :"+result);
		return result;	
	}	

}
